package com.dycong.common.common.lock.v3;

/**
 * Created by WangYongHuang on 2017/8/22.
 */
public enum JedisCacheGroup {
    //手机验证码
    PHONE_SMS_CODE("ACTIVITY:SMSCODE", 3 * 60, true),
    THIRD_ORDER_SUBMIT_CODE("THIRDORDER:SUBMIT", 3, true),
    ORDER_SUBMIT_CODE("ORDER:SUBMIT", 2, true),
    ADDRESS_SUBMIT_CODE("ADDRESS:SUBMIT", 2, true),
    PAY_SUBMIT_CODE("PAY:SUBMIT", 1, true),
    REFUND_SUBMIT_CODE("REFUND:SUBMIT", 1, true),
    REMIT_SUBMIT_CODE("REMIT:SUBMIT", 3, true),
    FENQI_RETURN_GOODS_CODE("FENQI:RETURN-GOODS", 1, true),//分期-商城后台发起-退货-传递请求给贷款

    EVALUATE_SUBMIT_CODE("EVALUATE:SUBMIT", 2, true),
    SALE_SERVICE_SUBMIT_CODE("SALE:SERVICE:SUBMIT:CODE", 2, true);


    private String groupName;
    private Integer timeOut;
    // 是否加入索引
    private boolean hasIndex;

    JedisCacheGroup(String groupName, Integer timeOut, boolean hasIndex) {
        this.groupName = groupName;
        this.timeOut = timeOut;
        this.hasIndex = hasIndex;
    }

    public boolean isHasIndex() {
        return hasIndex;
    }

    public Integer getTimeOut() {
        return timeOut;
    }

    public String getGroupName() {
        return groupName;
    }
}
